import request from '@/utils/request'

export function fetchList(query) {
    return request({
        url: '/Banlist/getList',
        method: 'get',
        params: query
    })
}

export function createArticle(data) {
    return request({
        url: '/Banlist/getAdd',
        method: 'post',
        data
    })
}

export function getDel(data) {
    return request({
        url: '/Banlist/getDel',
        method: 'post',
        data
    })
}
//修改用户信息
export function updateArticle(data) {
    return request({
        url: '/Banlist/getEdit',
        method: 'post',
        data
    })
}

//根据id
export function getListAll(data) {
    return request({
        url: '/Banlist/getListAll',
        method: 'post',
        data
    })
}

